import request from "@/utils/request";

const BASE_URL = "/admin-api/feedback";

class FeedbackAPI {
  static getGridList(city: any) {
    return request<any, any>({
      url: `${BASE_URL}/getGridList/${city}`,
      method: "get",
    });
  }

  static feedbackList(data: any) {
    return request<any, any>({
      url: `${BASE_URL}/getFeedbackList`,
      method: "post",
      data,
      headers: {
        "Content-Type": "application/json",
      },
    });
  }

  static submitAssign(data: any) {
    return request<any, any>({
      url: `${BASE_URL}/submitAssign`,
      method: "post",
      data,
      headers: {
        "Content-Type": "application/json",
      },
    });
  }
}

export default FeedbackAPI;
